const db = require("../lib/db");
function deleteArticle(authorId){
    return new Promise((resolve,reject)=>{
        let sql = "delete from article where authorId";
        db.querySql(sql).then(data=>{
            if(data.length==0){
                resolve(402)
            }else{
                resolve(403)
            }
        })
    })

}
module.exports = deleteArticle